package org.yate.oa.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.dao.mapper.OrgMapper;
import org.yate.oa.model.OrgEntity;
import org.yate.oa.service.IOrgService;

/**
 * 组织架构管理
 * 
 * @author ZYY
 * 
 */
@Service
public class OrgService extends BaseService<OrgEntity, Integer> implements IOrgService {

	@Resource(name = "orgMapper")
	private OrgMapper orgDao;

	protected IBaseMapperDao<OrgEntity, Integer> getMapperDao() {
		return this.orgDao;
	}

	@Override
	public List<OrgEntity> getEntityAll() {
		return orgDao.getEntityAll();
	}

    @Override
    public List<OrgEntity> getEntitiesBy(OrgEntity o)
    {
        return orgDao.getEntitiesBy(o);
    }

}
